package com.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 此启动文件必须放到包的根下，否则不会扫描不到其它包的
 */

@SpringBootApplication
public class StringBootApplication {

    public static void main(String[] args) {
        SpringApplication.run(StringBootApplication.class, args);
    }

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
